package com.yinuo;

import com.yinuo.common.SystemWaiter;
import com.yinuo.entity.GlobalContext;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;

/**
 * Created by Administrator on 2018/7/14.
 */
@SpringBootApplication
@ComponentScan(basePackages = {"com.yinuo"})
@EnableAutoConfiguration
public class SpringBootStarter {
    public static void main(String[] args) {
        //System.exit(SpringApplication.exit(SpringApplication.run(SpringBootStarter.class)));//springboot退出方式才会执行监听器
        SpringApplication.run(SpringBootStarter.class);
    }
}
